package com.murong.ecp.dbs.ccs.domain.enums;

public enum PostgreSqlMappingType {
    String("varchar", "String"),
    YGAmt("numeric", "YGAmt"),
    Long("numeric", "Long"),
    Integer("integer", "Integer"),
    BigDecimal("numeric", "BigDecimal"),
    Date("date", "Date"),
    Timestamp("timestamp", "Timestamp"),
    Boolean("boolean", "Boolean"),
    Bytea("bytea", "byte[]");

    private final String postgresType;
    private final String javaType;

    PostgreSqlMappingType(String postgresType, String javaType) {
        this.postgresType = postgresType;
        this.javaType = javaType;
    }

    public String getPostgresType() {
        return postgresType;
    }

    public String getJavaType() {
        return javaType;
    }
} 